program use_mod
  use my_mod, only: public_var, printMat=>print_matrix
  implicit none

  real :: mat(10, 10)

  mat(:,:) = public_var

  call printMat(mat)

  print *, "public_var = ", public_var

end program use_mod